import request from '@/utils/request'


export function listOwnOrder(){
  return request({
    url:"/system/order/list/user",
    method:"get"
  })
}

// 查询支付订单列表
export function listOrder(query) {
  return request({
    url: '/system/order/list',
    method: 'get',
    params: query
  })
}

// 查询支付订单详细
export function getOrder(id) {
  return request({
    url: '/system/order/' + id,
    method: 'get'
  })
}

// 新增支付订单
export function addOrder(data) {
  return request({
    url: '/system/order',
    method: 'post',
    data: data
  })
}

// 修改支付订单
export function updateOrder(data) {
  return request({
    url: '/system/order/update',
    method: 'post',
    data: data
  })
}

// 删除支付订单
export function delOrder(id) {
  return request({
    url: '/system/order/delete/' + id,
    method: 'post'
  })
}
